<template>
	<view>
		<uni-section class="pub-title" title="出单详情" type="line"></uni-section>
		<uni-card :isShadow="true">
			<uni-steps :options="stepsList" direction="column" :active="active"></uni-steps>
		</uni-card>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				active: 0,
				stepsList: []
			}
		},
		
		onLoad() {
			let that = this
			
			uni.request({
				url: getApp().globalData.serviceUrl + "/order/kuybOrder/orderTimeline",
				data: {
					zhubId: uni.getStorageSync("policy").zhubid,
				},
				header: {
					"X-Access-Token": uni.getStorageSync("token")
				},
				dataType: 'json',
				method: 'GET',
				success: (result) => {
					if (result.data.success) {
						that.stepsList = result.data.result
						that.active = result.data.result.length
					}
				}
			
			});
		},
		
		methods: {
			
		}
	}
</script>

<style>

</style>
